package com.quanyan.user.mapper;

import com.quanyan.user.model.db.TbNewsImages;
import com.quanyan.user.model.vo.response.ImageObj;
import com.quanyan.user.model.vo.response.RespDynamicDetail;
import com.quanyan.user.model.vo.response.RespImgInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2016/11/18.
 */
public interface NewsImagesMapper {

    /**
     * 查询动态图片
     * @param lst
     * @return
     */
    List<TbNewsImages> findNewsImages(@Param("list") List<RespDynamicDetail> lst);


    /**
     * 查询动态图片
     * @param lst
     * @return
     */
    List<ImageObj> findNewsImagesObj(@Param("list") List<RespDynamicDetail> lst);

    /**
     * 获取我的动态图片
     * @param uid
     * @param size
     * @return
     */
    List<RespImgInfo> getMyDynamicImages(@Param("uid") Integer uid, @Param("size") Integer size);

    /**
     * 获取我的动态图片
     * @param uid
     * @param size
     * @return
     */
    List<RespImgInfo> getIndexDynamicImages(@Param("currentUid")Integer currentUid ,@Param("uid") Integer uid, @Param("size") Integer size);

    /**
     *  获取我的动态图片数量
     * @param uid
     * @return
     */
    Integer myDynamicImageCount(Integer uid);

}
